	<div id="newsnav_wrapper">
		<ul class="newsnav ucase">
			<li class="active"><a href="{$URL_advancedsearch}"><span>{#PLIGG_Visual_Search_Advanced#}</span></a></li>
			<li><a href="{$my_base_url}{$my_pligg_base}"><span>{#PLIGG_Visual_Published_News#}</span></a></li>
			<li><a href="{$URL_upcoming}"><span>{#PLIGG_Visual_Pligg_Queued#}</span></a></li>			
		</ul>
	</div>
	<div id="asearch" class="box">
		{literal}
		<script type="text/javascript">
		//<![CDATA[
		function SEO2submit(form) {
			var datastr = '';
			var fields  = form.getElementsByTagName('INPUT');
			for (var i=0; i<fields.length; i++)
				if (fields[i].type=="text")
					if (fields[i].name=="search")
						datastr += (fields[i].value ? encodeURIComponent(fields[i].value) : '-') + '/';
					else
						datastr += fields[i].name + '/' + encodeURIComponent(fields[i].value) + '/';
				else if (fields[i].type=="radio" && fields[i].checked)
					datastr += fields[i].name + '/' + encodeURIComponent(fields[i].value) + '/';
					fields  = form.getElementsByTagName('SELECT');
			for (var i=0; i<fields.length; i++)
			for (var j=0; j<fields[i].length; j++)
				if (fields[i][j].selected)
					datastr += fields[i].name + '/' + encodeURIComponent(fields[i][j].value) + '/';
			document.location.href=form.action+datastr+'adv/1';
		}
		//]]>
		</script>
		{/literal}
		<form method="get" action="{$URL_search}"
		{php}
		global $URLMethod;
		if ($URLMethod==2) print "onsubmit='SEO2submit(this); return false;'";
		{/php}
		>
			<label for="search"><strong>{#PLIGG_Visual_Search_Keywords#}:</strong></label><br />
			<input type="text" name="search" id="search" />
			<span class="submit_instructions">Use ( <strong>&quot;</strong> ) double-quotes for literal searches. <strong>Example:</strong> &quot;Search Keywords&quot;</span>
			<br /><br />
			
			<label for="slink"><strong>{#PLIGG_Visual_Search_Story#}:</strong></label><br />
			<select name="slink" id="slink">
				<option value="3" selected="selected">{#PLIGG_Visual_Search_Story_Title_and_Description#}</option>
				<option value="1">{#PLIGG_Visual_Search_Story_Title#}</option>
				<option value="2">{#PLIGG_Visual_Search_Story_Description#}</option>											
			</select>
			<br /><br />
			
			<label for="scategory"><strong>{#PLIGG_Visual_Search_Category#}:</strong></label><br />
			<select name="scategory" id="scategory">
				{$category_option}
			</select>
			<br /><br />
			
			{php} if (enable_group=='true') { {/php}
			<label for="sgroup"><strong>{#PLIGG_Visual_Search_Group#}:</strong></label><br />
			<select name="sgroup" id="sgroup">
				<option value="3" selected="selected">{#PLIGG_Visual_Search_Group_Named_and_Description#}</option>
				<option value="1">{#PLIGG_Visual_Search_Group_Name#}</option>
				<option value="2">{#PLIGG_Visual_Search_Group_Description#}</option>												
			</select>
			<br /><br />
			{php} } {/php}
			
			<label for="status"><strong>{#PLIGG_Visual_Search_Status#}:</strong></label><br />
			<select name="status" id="status">
				<option value="all" selected="selected">{#PLIGG_Visual_Search_Status_All#}</option>
				<option value="published">{#PLIGG_Visual_Search_Status_Published#}</option>
				<option value="queued">{#PLIGG_Visual_Search_Status_Upcoming#}</option>
			</select>
			<br /><br />
			
			<label class="optionlabel"><strong>{#PLIGG_Visual_Search_Comments#}:</strong></label>
			<input type="radio" name="scomments" value="1" checked="checked" /><span class="radio_pos">{#PLIGG_Visual_Search_Advanced_Yes#}</span> &nbsp;&nbsp;<input type="radio" name="scomments" value="0" /><span class="radio_pos">{#PLIGG_Visual_Search_Advanced_No#}</span>
			<br />
			
			<label class="optionlabel"><strong>{#PLIGG_Visual_Search_Tags#}:</strong></label>
			<input type="radio" name="stags" value="1" checked="checked" /><span class="radio_pos">{#PLIGG_Visual_Search_Advanced_Yes#}</span> &nbsp;&nbsp;<input type="radio" name="stags" value="0" /><span class="radio_pos">{#PLIGG_Visual_Search_Advanced_No#}</span>
			<br />
		
			<label class="optionlabel"><strong>{#PLIGG_Visual_Search_User#}:</strong></label>
			<input type="radio" name="suser" value="1" /><span class="radio_pos">{#PLIGG_Visual_Search_Advanced_Yes#}</span> &nbsp;&nbsp;<input type="radio" name="suser" value="0" checked="checked" /><span class="radio_pos">{#PLIGG_Visual_Search_Advanced_No#}</span>
			<br /><br />
			
			<label for="date"><strong>{#PLIGG_Visual_Advanced_Search_Date#}</strong></label><br />
			<input type="date" name="date" id="date" /><span>(<em>YYYY-mm-dd</em>)</span>
			<br /><br />
			
			<input type="hidden" name="adv" value="1" />
			<input type="submit" name="advancesearch" value="Advanced Search" class="submit_button" />
		</form>
	</div>